<%@ page import = "java.util.ArrayList" %>
<%@ page import = "com.mbbcpa.util.Constants" %>
<%@ page import = "com.mbbcpa.security.dao.*" %>

<%


//-- Navigation

	// Get Manual CP Acces List
	ArrayList secGroupAccessList = (ArrayList) session.getAttribute(Constants.LOGON_ACCESS_LIST);
	
	// Get Login Details 
	SecUserDao oSecUserDao = (SecUserDao) session.getAttribute(Constants.LOGGED_USER);
	String sUserName = oSecUserDao.getUserName();
	String lastLogonDateTime = (String) session.getAttribute(Constants.LAST_LOGON_DATETIME);
	
	// Module Declaration
	int iMan001 = 0;
	int iMan002 = 0;
	
	for(int i=0;i<secGroupAccessList.size();i++){
		SecAccessDao secaccessDao = (SecAccessDao)secGroupAccessList.get(i);
		String strModuleCode  = secaccessDao.getModuleCode();
	
		if(strModuleCode.equals("MAN001"))
			iMan001 = 1;
		if(strModuleCode.equals("MAN002"))
			iMan002 = 1;
	
		
	}

%>

<link href="resource/style.css" rel="stylesheet" type="text/css">
	
	<script type="text/javascript">
	    window.history.forward();
	    function noBack() { window.history.forward(); }
	</script>
<style type="text/css"></style></head>

<body class="home" onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">
	<a name="top"></a>
	
<!-- Header -->
<%@ include file="/jsp/common/Header.jsp" %>	
<!-- End Header -->


	<div id="bgWrapper">
		<div id="container">

			<div id="titleBar">
				<ul class="topBar">
					<li class="goBackBt"><a href="<%=request.getContextPath()%>/CheckUserLogon.do?dispatch=homePage"></a></li>
					<li>
					  <h1>CP Inquiry</h1></li>
				</ul>
			</div>

			<div id="fullcontent">
			
			<!-- Security Navigation -->
			<%@ include file="ManualCPNavigation.jsp" %>	
			<!-- End SecurityNavigation -->

			<div id="contentRightIn">
				<table border="0" cellpadding="0" cellspacing="0" width="650px">
					<tbody><tr>
						<td>
							<div style="width:auto;height:auto;padding:12px 20px;margin:0 0 5px 0;display:block;font-size:20px;font-weight:bold;color:#ffb606;">
								What to do:
							</div>
							<table cellpadding="0" cellspacing="0" border="0">
			                <tr>
			                <td width="50%"> <div class="listingBox" <%=iMan001==1?"":"style='display:none'"%>>
										<a href="<%=request.getContextPath()%>/ShowManualCPScreens.do?dispatch=manualcp1" onclick="overlay();">
										<h3>CP Inquiry</h3>
										<br />
										Manual input for CP in the event LOS or CPA system error.</a>
			                            </div></td>
			                <td width="50%" ><div class="listingBox" <%=iMan002==1?"":"style='display:none'"%>>
										<a href="<%=request.getContextPath()%>/ShowManualCPScreens.do?dispatch=manualcp2" onclick="overlay();">
										<h3>CP Status Inquiry</h3>
										<br />
										Inquiry of CP Status by GCIF or AA Number.</a>
									</div></td>
			                </tr>			              
				</tbody></table>
			</div>

				
			</div>

<!-- Footer -->
<%@ include file="/jsp/common/Footer.jsp" %>	
<!-- End Footer -->
		</div>
	</div>
